package com.app.miwawa.api.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.framework.common.api.entity.CommonEntityUUID;
import org.framework.common.api.support.annotation.Chosen;
import org.framework.common.api.support.annotation.ChosenType;

/**
 * 系统管理－校区
 * <p>描述:</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年1月11日 下午4:40:12
 * @version 1.0.2016
 */
@Entity @Table(name = "TB_SYSTEM_REGION")
public class Region extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = 181511163486276858L;

	// 校区编码
	@Column(name = "code", length = 50, nullable = true)
	private String code;

	// 校区名称
	@Column(name = "name", length = 50, nullable = true)
	private String name;
	
	// 所在区县
	@Column(name = "county", length = 50, nullable = true)
	private String county;
		
	// 所在地区
	@Column(name = "pref", length = 50, nullable = true)
	private String pref;
		
	// 所在省份
	@Column(name = "prov", length = 50, nullable = true)
	private String prov;
	
	// 中心ID
	@Column(name = "center_id", length = 50, nullable = true)
	private String centerid;

	@Override
	@Chosen(type=ChosenType.VALUE)
	public String getId() {
		return super.getId();
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Chosen(type=ChosenType.TEXT)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCounty() {
		return county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	public String getPref() {
		return pref;
	}

	public void setPref(String pref) {
		this.pref = pref;
	}

	public String getProv() {
		return prov;
	}

	public void setProv(String prov) {
		this.prov = prov;
	}

	public String getCenterid() {
		return centerid;
	}

	public void setCenterid(String centerid) {
		this.centerid = centerid;
	}
}
